package com.jichangxiu.framework.action;

import com.jichangxiu.common.annotation.Rest;
import com.jichangxiu.common.constant.Constants;
import com.jichangxiu.common.entity.vo.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Tag(name = "系统-平台管理控制器")
@Rest
public class IndexAction {

    @Operation(summary = "平台-系统欢迎页面")
    @RequestMapping(value = {"/", "/index"}, method = {RequestMethod.POST, RequestMethod.GET})
    public Result<String> index() {
        return Result.ok("欢迎使用 " + Constants.JCX_PROPERTIES.getProjectName(), "欢迎使用 " + Constants.JCX_PROPERTIES.getProjectName());
    }

}
